package com.stylefeng.guns.modular.system.dao;

import com.stylefeng.guns.modular.system.model.Order;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import java.util.Date;
import java.util.List;

import java.util.Map;

import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liuyulong
 * @since 2018-08-01
 */
public interface OrderMapper extends BaseMapper<Order> {


    List<Order> getByOrderId(String state);


    public List<Map<String,Object>> selectorderById(String state);
    public List<Order> selectOrderByUserId(String openid);

    public List<Order> selectOrderByOpenId(@Param("openid") String openid,@Param("state") Integer state);

    List<Map<String, Object>> selectByOpenidState(@Param("openid") String openid, @Param("state") Integer state);


    Order selcetByUserid(@Param("weixinuserid") Integer userid,@Param("state") Integer state);

    Order selcetByNewdate(@Param("newdate") Date newdate, @Param("weixinuserid") Integer userid,@Param("state") Integer state,@Param("lineid") Integer lineid);

    Order selcetByUseridLineId(@Param("weixinuserid") Integer userid,@Param("state") Integer state,@Param("lineid")Integer lineid);

    Order selcetByOrderdState(@Param("id") Integer orderid,@Param("state") Integer state);





}
